package vn.allmobile.ambnews.utils;

import vn.allmobile.ambnews.R;

import android.graphics.Bitmap;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import com.nostra13.universalimageloader.core.display.SimpleBitmapDisplayer;

public class ImageLoadOption {
	public static DisplayImageOptions options = 
	new DisplayImageOptions.Builder()
	.cacheInMemory()
	.showImageForEmptyUri(R.drawable.no_image)
	.cacheOnDisc()
	.resetViewBeforeLoading()		
	.bitmapConfig(Bitmap.Config.RGB_565)
	.imageScaleType(ImageScaleType.EXACTLY)
	.displayer(new SimpleBitmapDisplayer()).build(); 

}
